import request from '@/utils/request'

// 查询货主资料列表
export function listOwnerdoc(query) {
  return request({
    url: '/flow/ownerdoc/list',
    method: 'get',
    params: query
  })
}

// 查询货主资料详细
export function getOwnerdoc(ownerid) {
  return request({
    url: '/flow/ownerdoc/' + ownerid,
    method: 'get'
  })
}

// 新增货主资料
export function addOwnerdoc(data) {
  return request({
    url: '/flow/ownerdoc',
    method: 'post',
    data: data
  })
}

// 修改货主资料
export function updateOwnerdoc(data) {
  return request({
    url: '/flow/ownerdoc',
    method: 'put',
    data: data
  })
}

// 删除货主资料
export function delOwnerdoc(ownerid) {
  return request({
    url: '/flow/ownerdoc/' + ownerid,
    method: 'delete'
  })
}
